package com.example.shaidemo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class GetData {

    //获取收藏、浏览数据
    static List<Map<String,String>> getData() {
        String comp[] = {"杭州 | 阿里巴巴","杭州 | 阿里巴巴(北京)软件服务有限公司","成都 | 成都格兰朵酒店","始：西南财经大学柳林校区(东北门)"};
        String ti[]={"工资","工资","酒店","打车"};
        String three[] = {"行业： 技术","行业： 技术","酒店     非节假日","终：嘉立大厦（金牛区沙湾路272号"};
        String four[] = {"薪资： 25564","薪资： 32564","￥ 203      入住时长：1晚","里程：38.2km    ￥48.97"};

        List<Map<String,String>> list =new ArrayList<>();
        for(int i=0;i<4;i++){
            Map map = new HashMap();
            map.put("title",ti[i]);
            map.put("company",comp[i]);
            map.put("majority",three[i]);
            map.put("salary",four[i]);
            map.put("img",R.drawable.collect2);
            list.add(map);
        }
        return list;
    }

    static List<Map<String,String>> uploadData() {
        String comp[] = {"杭州 | 阿里巴巴","杭州 | 阿里巴巴(北京)软件服务有限公司","成都 | 成都格兰朵酒店","始：西南财经大学柳林校区(东北门)"};
        String ti[]={"工资","工资","酒店","打车"};
        String three[] = {"行业： 技术","行业： 技术","酒店     非节假日","终：嘉立大厦（金牛区沙湾路272号"};
        String four[] = {"薪资： 25564","薪资： 32564","￥ 203      入住时长：1晚","里程：38.2km    ￥48.97"};
        String two[] = {"审核中","审核通过","审核通过","审核失败"};
        String one[] = {"2020.1.12","2019.5.12","2019.5.1","2019.4.12"};
        List<Map<String,String>> list =new ArrayList<>();
        for(int i=0;i<4;i++){
            Map map = new HashMap();
            map.put("title",ti[i]);
            map.put("status",two[i]);
            map.put("time",one[i]);
            map.put("company",comp[i]);
            map.put("majority",three[i]);
            map.put("salary",four[i]);
            list.add(map);
        }
        return list;
    }

    public static List<Map<String,String>> HotelList(){
        String one[] = {"七天酒店","成都格兰朵酒店","海上海泊晶酒店","山与城·城宿","亿家民宿"};
        String two[] = {"酒店","酒店","酒店","民宿","民宿"};
        String three[] = {"非节假日","非节假日","非节假日","节假日","节假日"};
        String four[] = {"￥ 121","￥ 203","￥ 94","￥204","￥ 423"};
        String five[] = {"可信度：56","可信度：436","可信度：56","可信度：56","可信度：56"};
        String six[] = {"入住时长：1晚","入住时长：1晚","入住时长：3时","入住时长：1晚","入住时长：2晚"};
        String seven[] = {"深圳","成都","绵阳","重庆","成都"};
        String eight[] = {"宝安国际机场航站楼店","宽窄巷子","火车站旁","解放碑/洪崖洞","成都火车北站/城北客运中心"};

        List<Map<String,String>> hotel = new ArrayList<>();
        for(int i=0;i<5;i++){
            Map map = new HashMap();
            map.put("one",one[i]);
            map.put("two",two[i]);
            map.put("three",three[i]);
            map.put("four",four[i]);
            map.put("five",five[i]);
            map.put("six",six[i]);
            map.put("seven",seven[i]);
            map.put("eight",eight[i]);
            map.put("pic_1",R.drawable.locatepicture);
            map.put("pic_2",R.drawable.rightarrow);
            hotel.add(map);
        }
        return hotel;
    }

    public static List<Map<String,String>> CarlList(){
        String one[]={"成都工业学院郫都校区(1号门)","西南财经大学柳林校区(东北门)","成都新世纪外国语学校招生办公室","全季酒店(都江堰大店)"};
        String two[]={"￥ 35.12","￥ 48.97","￥ 15.92","￥ 16.92"};
        String three[] = {"西南财经大学柳林校区(东北门)","嘉立大厦(金牛区沙湾路272号)","四川时代伟业建筑材料租赁有限公司","都江堰站"};
        String five[] = {"里程：21km","里程：38.2km","里程：3.8km","里程：4km"};
        String six[] = {"可信度：238","可信度：56","可信度：155","可信度：338"};

        List<Map<String,String>> car = new ArrayList<>();
        for(int i=0;i<4;i++){
            Map map = new HashMap();
            map.put("one",one[i]);
            map.put("two",two[i]);
            map.put("three",three[i]);
            map.put("four","成都");
            map.put("five",five[i]);
            map.put("six",six[i]);
            map.put("pic_1",R.drawable.greenpoint);
            map.put("pic_2",R.drawable.redpoint);
            map.put("pic_3",R.drawable.locatepicture);
            map.put("pic_4",R.drawable.rightarrow);
            car.add(map);
        }
        return car;
    }

    public static List<Map<String,Object>> tipsList(){
        String one[]={"常用\"防杀熟\"三大技巧","什么是\"杀熟\" ","常用\"防杀熟\"三大技巧"};
        String two[]={"3911","1911","999"};
        String three[] = {"13911","1091","900"};
        String four[] = {"3911","9911","300"};
        int images[]= {R.drawable.first,R.drawable.second,R.drawable.third};
        List<Map<String,Object>> tip = new ArrayList<>();
        for(int i=0;i<3;i++){
            Map map = new HashMap();
            map.put("one",one[i]);
            map.put("two",two[i]);
            map.put("three",three[i]);
            map.put("four",four[i]);
            map.put("five",i+1);
            map.put("pic_1",R.drawable.support);
            map.put("pic_2",R.drawable.browse);
            map.put("pic_4",R.drawable.collect3);
            tip.add(map);
        }
        return tip;
    }
}
